package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceOrderotherpayMapper;
import com.ruoyi.service.domain.ServiceOrderotherpay;
import com.ruoyi.service.service.IServiceOrderotherpayService;

/**
 * 其他费用Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-26
 */
@Service
public class ServiceOrderotherpayServiceImpl implements IServiceOrderotherpayService 
{
    @Autowired
    private ServiceOrderotherpayMapper serviceOrderotherpayMapper;

    /**
     * 查询其他费用
     * 
     * @param orderotherpayId 其他费用主键
     * @return 其他费用
     */
    @Override
    public ServiceOrderotherpay selectServiceOrderotherpayByOrderotherpayId(Long orderotherpayId)
    {
        return serviceOrderotherpayMapper.selectServiceOrderotherpayByOrderotherpayId(orderotherpayId);
    }

    /**
     * 查询其他费用列表
     * 
     * @param serviceOrderotherpay 其他费用
     * @return 其他费用
     */
    @Override
    public List<ServiceOrderotherpay> selectServiceOrderotherpayList(ServiceOrderotherpay serviceOrderotherpay)
    {
        return serviceOrderotherpayMapper.selectServiceOrderotherpayList(serviceOrderotherpay);
    }

    /**
     * 新增其他费用
     * 
     * @param serviceOrderotherpay 其他费用
     * @return 结果
     */
    @Override
    public int insertServiceOrderotherpay(ServiceOrderotherpay serviceOrderotherpay)
    {
        return serviceOrderotherpayMapper.insertServiceOrderotherpay(serviceOrderotherpay);
    }

    /**
     * 修改其他费用
     * 
     * @param serviceOrderotherpay 其他费用
     * @return 结果
     */
    @Override
    public int updateServiceOrderotherpay(ServiceOrderotherpay serviceOrderotherpay)
    {
        return serviceOrderotherpayMapper.updateServiceOrderotherpay(serviceOrderotherpay);
    }

    /**
     * 批量删除其他费用
     * 
     * @param orderotherpayIds 需要删除的其他费用主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrderotherpayByOrderotherpayIds(Long[] orderotherpayIds)
    {
        return serviceOrderotherpayMapper.deleteServiceOrderotherpayByOrderotherpayIds(orderotherpayIds);
    }

    /**
     * 删除其他费用信息
     * 
     * @param orderotherpayId 其他费用主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrderotherpayByOrderotherpayId(Long orderotherpayId)
    {
        return serviceOrderotherpayMapper.deleteServiceOrderotherpayByOrderotherpayId(orderotherpayId);
    }
}
